package com.an.pay;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@Slf4j
@EnableScheduling
public class PayDemoApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(PayDemoApplication.class, args);
        String port = applicationContext.getEnvironment().getProperty("server.port");
        log.info("启动端口：http://localhost:{}",port);
        log.info("swagger文档：http://localhost:{}/doc.html",port);
    }

}
